package com.eastmoney.emis.edda.domain.valueobject;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.valueobject
 * @author: 汪程程
 * @date: 2022/10/15 9:51 AM
 * @version: 1.0
 */
public enum ServiceType {

    EDDA(1),

    EDDI(2);


    private Integer value;

    ServiceType(Integer value) {
        this.value = value;
    }

    public static ServiceType parse(Integer value) {
        for (ServiceType serviceType : ServiceType.values()) {
            if(serviceType.value.equals(value)){
                return serviceType;
            }
        }
        return null;
    }
}
